//
//  Pull_down_menuVC.h
//  Dm
//
//  Created by H.DX on 14-4-14.
//  Copyright (c) 2014年 H.DX. All rights reserved.
//

#import <UIKit/UIKit.h>


#pragma mark - data source protocol
@class THDropDownMenu;



@protocol THDropDownMenuDelegate <NSObject>
@optional
- (void)menu:(THDropDownMenu *)menu didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

- (void)hide:(THDropDownMenu *)menu;

@end

@interface THDropDownMenu : UIView

@property (nonatomic, weak) id <THDropDownMenuDelegate> delegate;

//初始化
- (id)initSetump;

/*
 *展示
 @parma frame 位置
  @parma array 显示数组
  @parma x 左left间距
  @parma y 上top距离
  @parma del  委托
 */
-(void)show:(CGRect)frame TableViewSource:(NSArray*)array marginx:(CGFloat)x  topy:(CGFloat)y  THDropDownMenuDelegate:(id)del ;

 
@end
